<template>
    <div id="temp">
        <comment :id="id"></comment>
    </div>
</template>
<script>

//导入评论子组件
import comment from '../subcomponents/comment.vue'

export default {
    data() {
        return {
            id: 0
        }
    },
    components: {
        comment
    },
    created() {
        this.id = this.$route.params.id;
    }
}
</script>
<style scoped>
#temp {
    padding: 10px;
}
</style>


